package o2o.dao.PO.sys;


import o2o.system.Common;

import java.util.*;

public class SysSetting {
    private String code;   //配置项编号
    private String name;    //配置项名称
    private String descs;   //配置描述
    private String note;   //配置备注
    private String val;      //系统配置值
    private String valInfo;      //存储val中的值，用,隔开
    private String categoryCode;      //分类编码
    private int isShow;//是否前台显示  1显示  0不显示
    private String createUser;//是否已删除(0未删除,1已删除)
    private Long createTime;//创建日期
    private String updateTime;  //更新时间

    public String getValInfo() {
        return valInfo;
    }

    public void setValInfo(String valInfo) {
        this.valInfo = valInfo;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    private String description;   //配置描述

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getVal() {
        return val;
    }

    public void setVal(String val) {
        this.val = val;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }


    public static List<String> DictType = new ArrayList<String>();     //字典类型
    public static Map<Integer, Integer> AroundMap = new HashMap<Integer, Integer>();   //周边距离和对应的GeoHash层数

//    public final static String CITY_VERSION = "cityVersion";   //城市版本号
//    public final static String USER_REGISTER_NEED_CODE = "USER_REGISTER_NEED_CODE";//用户注册是否需要验证码
//    public final static String AroundSearch = "AroundSearch";   //周边范围

    //查询范围
    public final static int AroundSearchLength = 5;        //5层的处理30KM

    static {
        AroundMap.put(5, 2);   //5公里对应的是2层
        AroundMap.put(10, 3);   //10公里对应的是2层
        AroundMap.put(15, 3);   //15公里对应的是3层
        AroundMap.put(20, 4);   //20公里对应的是4层
        AroundMap.put(25, 5);   //25公里对应的是4层
        AroundMap.put(30, 5);   //30公里对应的是5层
        AroundMap.put(35, 6);   //35公里对应的是6层
        AroundMap.put(40, 7);   //40公里对应的是7层
    }

    public static String getCurDate() {
        return Common.sdfDateTime.format(new Date());
    }

    public String getDescs() {
        return descs;
    }

    public void setDescs(String descs) {
        this.descs = descs;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public int getIsShow() {
        return isShow;
    }

    public void setIsShow(int isShow) {
        this.isShow = isShow;
    }


    public String getCategoryCode() {
        return categoryCode;
    }

    public void setCategoryCode(String categoryCode) {
        this.categoryCode = categoryCode;
    }
}
